dnd-quartz: take hot spot into account when setting up drag
authorKristian Rietveld <kris@gtk.org>
Tue, 19 Oct 2010 11:26:06 +0000 (13:26 +0200)
committerKristian Rietveld <kris@gtk.org>
Tue, 19 Oct 2010 12:07:39 +0000 (14:07 +0200)
gtk/gtkdnd-quartz.c

index 74964d00e160517f91864ab028ffe170c8144fd9..bc27d1444f2294d4eab37f2b07040e2067c746a7 100644 (file)
@@ -1080,6 +1080,9 @@ gtk_drag_begin_idle (gpointer arg)
 
   drag_image = _gtk_quartz_create_image_from_pixbuf (info->icon_pixbuf);
 
+  point.x -= info->hot_x;
+  point.y -= info->hot_y;
+
   [nswindow dragImage:drag_image
                    at:point
                offset:NSMakeSize(0, 0)